﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Infrastructure
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class TreeNode<T> : TreeNode
    {
        T _data;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="nodeData"></param>
        public TreeNode(T nodeData) : base(nodeData)
        {
            _data = nodeData;
        }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("data")]
        public new T Data
        {
            get { return _data; }
        }
    }
}
